import {createRouter, createWebHashHistory, createWebHistory, RouteRecordRaw} from 'vue-router'
import Home from '../views/Home.vue'
import {message} from "ant-design-vue";

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'longing',
    component: ()=> import('../views/Login.vue')
  },
  {
    path: '/about',
    name: 'About',

    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  },
  {
    path: '/login',
    name: 'Login',
    component: ()=> import('../views/Login.vue')
  },
  {
    path:'/form',
    name: 'form',
    component:()=>import('../views/Form.vue')
  },
  {
    path:'/user',
    name:'user',
    component:()=>import('../views/UserManage.vue')
  },
  {
    path:'/admin',
    name:'admin',
    component:()=>import("../views/Admin.vue")
  },
  {
    path:'/message',
    name:'message',
    component:()=>import("../views/Message.vue")
  }
]

const router = createRouter({
  history: createWebHashHistory(process.env.BASE_URL),
  routes
})

export default router
